import styled from 'styled-components'
import bg from '@/static/images/set/mo-account-input.png'
import req from '@/static/images/set/mo-icon-required.png'
const StyledAccount = styled.div<{ labelWidth: number }>`
	display: flex;
	justify-content: flex-start;
	align-items: center;
	font-size: 12px !important;
	.label {
		width: ${(props) => props.labelWidth + 'px'};
	}
	.read-account-text {
		font-size: 12px;
	}
	.icon {
		display: inline-block;
		width: 30px;
		height: 30px;
		margin-left: 8px;
		cursor: pointer;
		background: url(${bg}) no-repeat;
	}
	.edit-icon {
		background-position: 0 0;
		margin-left: 30px;
		&:hover {
			background-position: -30px 0;
		}
		&:active {
			background-position: -60px 0;
		}
	}
	.confirm-icon {
		background-position: -120px 0;
		&:hover {
			background-position: -150px 0;
		}
		&:active {
			background-position: -180px 0;
		}
	}
	.cancel-icon {
		background-position: -240px 0;
		&:hover {
			background-position: -270px 0;
		}
		&:active {
			background-position: -300px 0;
		}
	}
	.input-wrap {
		position: relative;
		.account-warn {
			position: absolute;
			width: 314px;
			left: 0px;
			top: 27px;
			color: #d21e1e;
			font-size: 12px;
		}
		.require-icon {
			display: inline-block;
			width: 6px;
			height: 6px;
			margin-left: 8px;
			background: url(${req});
			margin: 0 8px;
			position: relative;
			top: -6px;
		}
	}
`
export { StyledAccount }
